package com.cy.ppj.model.ao.mall;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Description 新增商品字段
 * @Author tanyilin
 * @Date 2019/7/4 13:59
 */
@Data
@ApiModel("新增商品字段")
public class GoodsAddAO {

    @ApiModelProperty(value = "品牌ID", example = "0")
    @NotNull(message = "品牌不可为空")
    private Long         brandId;

    @ApiModelProperty(value = "商品类别ID", example = "0")
    @NotNull(message = "商品类别不可为空")
    private Long         goodsCategoryId;

    @ApiModelProperty(value = "商品品类ID", example = "0")
    @NotNull(message = "商品品类不可为空")
    private Long         goodsTypeId;

    @ApiModelProperty(value = "商品名称")
    @NotEmpty(message = "名称不可为空")
    private String       name;

    @ApiModelProperty(value = "原价", example = "0.00")
    @NotNull(message = "价格不可为空")
    private BigDecimal price;

    @ApiModelProperty(value = "折扣优惠点数", example = "0.00")
    @NotNull(message = "折扣不可为空")
    private BigDecimal   discount;

    @ApiModelProperty(value = "排序", example = "0")
    private Integer      weight;

    @ApiModelProperty(value = "头图数组")
    @NotEmpty(message = "头图不可为空")
    private List<GoodsImageAddAO> topBannerImageList;

    @ApiModelProperty(value = "商品介绍图数组")
    @NotEmpty(message = "商品介绍图不可为空")
    private List<GoodsImageAddAO> introductionImageList;
}
